package com.base.llpark;

import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.base.commonlib.base.CBaseBarActivity;
import com.base.llpark.databinding.ActivityHistoryBinding;

/**
 * Created by weikailiang on 2019/10/26.
 */

@Route(path = "/history/history")
public class HistoryActivity extends CBaseBarActivity implements View.OnClickListener{
    private ActivityHistoryBinding mBinding;
    @Override
    protected int getLayoutResource() {
        return R.layout.activity_history;
    }

    @Override
    protected void start() {
        mBinding = (ActivityHistoryBinding) mRootBinding;
        setBackNavigation();
        setBarTitle("历史记录");
        mBinding.llCase.setOnClickListener(this);
        mBinding.llTemp.setOnClickListener(this);
        mBinding.llPark.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        int i = view.getId();
        if (i == R.id.ll_case) {//                toHistory(HistoryListActivity.TYPE_CASE);

        } else if (i == R.id.ll_temp) {//                toHistory(HistoryListActivity.TYPE_TEMP);

        } else if (i == R.id.ll_park) {
            ARouter.getInstance().build("/history/parklist")
                    .navigation();

        }
    }
    private void toHistory(int type)
    {
//        Intent intent = new Intent(mContext, HistoryListActivity.class);
//        intent.putExtra("type",type);
//        startActivity(intent);
    }
}
